<template>
  <div>
    <avue-crud
      ref="crud"
      style="width: 100%"
      :data="loadData"
      :option="tableOption"
      :table-loading="loading"
    >
      <template slot="enabled" slot-scope="scope">
        <el-switch
          v-model="scope.row.enabled"
          @change="(value) => switchChange(value, scope.row)"
          :active-value="'00'"
          :inactive-value="'01'"
        ></el-switch>
      </template>
      <template slot="menu" slot-scope="scope">
        <el-button @click="edit(scope.row)" type="text" icon="el-icon-edit"
          >编辑</el-button
        >
      </template>
    </avue-crud>
  </div>
</template>

<script src='./index.js'></script>

<style>
</style>